<?php

foreach ($pages as $page)
{
	setlocale(LC_TIME, 'it_IT.utf8');

	echo anchor('pages/view/'.$page->id, $page->title) ."<br />";
	echo $page->intro."<br />";
	
	echo $page->author_id."<br />";
	
	//echo unix_to_human($page->date, TRUE, 'eu')."<br />";
	
	//echo strftime("%B %d %Y", $page->date) . "<br />";
	
	echo $page->num_comments." commenti<br />";
	
	echo "<hr />";
} 

echo anchor('pages/new_page', 'New page');

echo "<br />";

echo anchor('user/logout', 'Logout');
